﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Utility1;

namespace Thv.admin.Pages
{
    public partial class editproduct : System.Web.UI.UserControl
    {
        protected string template_path;
        protected string pageName;
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                pageName = Utils.GetParameter("page", "home");
                this.template_path = WebUtils.SystemUrl();
                if (Request.QueryString["Id"] == null)
                    hdfLink.Value = template_path + "/admin/Pages/editsanpham.aspx?page=" + pageName;
                else
                {
                    string id = Request.QueryString["Id"];
                    hdfLink.Value = template_path + "/admin/Pages/editsanpham.aspx?page=" + pageName + "&&Id=" + id;
                }
            }
            catch (Exception) { }
        }
    }
}